<dom-module id="o-checkbox">
    <template>
    </template>
    <script>
        Polymer({
            "is": "o-checkbox",
            "extends": "input",
            "properties": {
            	"model": {
        	type: Boolean,
        	value: false,
        	notify: true,
        	observer: 'downwardModel'
        }
            },
            "attached": function (){
this.calcChecked();
            },
            "listeners": {
"click": "upwardModel"
            },
            "upwardModel": function (){
            	this.set("model", !!this.checked);
            },
            "calcChecked": function (){
            	this.checked = !!this.model;
            },
            "downwardModel": function (){
            	this.calcChecked();
            }
        });
    </script>
</dom-module>